package com.eastmoney.emis.edda.infrastructure.report.service;

import com.eastmoney.emis.utils.common.po.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "EMIS-Basic-File", url = "${edda.feign.basic-file-service}")
public interface BasicFileService {

    @PostMapping(value = "/innerApi/upload/ext", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    BaseResponse<String> uploadFile(@RequestPart(value = "file")MultipartFile multipartFile, @RequestPart String module,  @RequestPart String extInfo);
}
